package panel.viewSpots.navigation
{
	import assists.URI;
	import assists.media.SoundMedia;
	import assists.resource.ResourceLoader;
	
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.text.TextField;
	
	public class NavigationMenuUp extends Sprite
	{
		private var _stage:Stage;
		private var _soundMedia:SoundMedia;
		private var _loader:ResourceLoader;
		private var _nameTxt:ScrollTxtHor = new ScrollTxtHor();
		private var _soundMenu:SoundModule;
		public function NavigationMenuUp(stage:Stage, loader:ResourceLoader,soundMedia:SoundMedia)
		{
		    _stage = stage;
			_loader = loader;
			_soundMedia = soundMedia;
			init();
		}
		
		private function init():void
		{
			_nameTxt.label(_soundMedia.soundName);
			_soundMedia.changeMusic = update;
			_soundMenu = new SoundModule(_stage,_loader,_soundMedia);
			_soundMenu.y = _nameTxt.y + _nameTxt.height + _soundMenu.height / 2;
			this.addChild(_nameTxt);
			this.addChild(_soundMenu);
			
			this.graphics.beginFill(0);
			this.graphics.drawRect(0,0,_stage.stageWidth,this.height);
			this.graphics.endFill();
		}
		
		private function update():void
		{
			_nameTxt.label(_soundMedia.soundName);
		}
		
		public function show(data:Object):void
		{
			
		}
		
	}
}